<extend name="base" />
<block name="CONTENT">
    <!--开始 我的信息-->
    <div class="contextMargin">
        <div class="col-sm-12 contextBotton marginBottom30">
            <div class="color9 size14">当前位置：账户设置>我的信息</div>
        </div>

        <div class="col-sm-12 contextTop contextBaground ">
            <div class="userPadding">
                <div class="userHeader">
                    <i></i>我的信息
                    <span class="color9 size14 labeiLeft5">为了更好的为您服务，请完善您的信息</span>
                </div>
                <div class="userboder"></div>
                <div class="row labeiTop30 labeiPaddingBt30">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" role="form" action="{:U('Ucenter/Config/edit_expandinfo')}" method="post">
                            <volist name="profile_group_list" id="vo">
                                <input type="hidden" name="profile_group_id" value="{$vo.id}" >
                                <if condition="$vo.profile_name eq '企业信息'">
                                    <volist name="vo.fields" id="vl">
                                        <div class="form-group">
                                            <label class="col-sm-2 col-xs-12 control-label no-padding-right labeichage xs-offset">{$vl.field_name}: </label>
                                            <div class="col-sm-8 col-xs-10">
                                                <input type="text" id="inputStyle" class="col-xs-10 col-sm-12 color3 keyInput" name="expand_{$vl.id}" value="{$vl.field_content.field_data}">
                                            </div>
                                        </div>
                                    </volist>
                                </if>
                            </volist>
                            <div>
                                <div class="col-sm-2"></div>
                                <div class="col-sm-10 col-xs-6">
                                    <div class="savaBtn stratHover saveMyMessage">保存</div>
                                </div>
                                <div class="col-sm-4">
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- /.col -->
                </div>
            </div>

        </div>
    </div>
    <!--结束 我的信息-->
</block>
<!-- 开始 页面 级 代码 -->
<block name="JAVASCRIPT_PAGE_LEVEL_CODE">
    <script>
        $(function(){
            /**
             * 我的信息 保存 点击事件
             * @author xiaojing
             */
            $('.saveMyMessage').on('click',function(){
                var self  = $(this).parents('form');
                $.post(self.attr("action"), self.serialize(), function(res){
                    medal.init({msg:res.info,type:(res.status) ? 'success' : 'error',callback:function(){
                        window.location.href  = '/index.php?s=/home/index/expandinfo';
                    }});
                }, "json");
            });
        });
    </script>
</block>
<!-- 结束 页面 级 代码 -->